package com.itheima.day5.test4;

public class Manager extends Person {
    private int bonus;

    @Override
    public void body() {
        System.out.println("给老板"+getName()+"的通知");
    }

    public Manager() {
    }

    public Manager(int id, String name, int age, int bonus) {
        super(id, name, age);
        this.bonus = bonus;
    }

    public int getBonus() {
        return bonus;
    }

    public void setBonus(int bonus) {
        this.bonus = bonus;
    }

    @Override
    public String toString() {
        return "Manager{" +
                "bonus=" + bonus +
                '}';
    }
}
